package T6_18.T6_18_4;

public class MyThread2 implements Runnable{
    int x = 5;
    @Override
    public void run() {
        System.out.println("这是一条重写runnable的B线程");

        for (int x = 0; x < 5; x++) {	// 循环5次
            if (this.x > 0) {
                System.out.println("x = " + this.x --);
            }
        }
    }
}
